package com.idc.quartz.service.impl;

import com.idc.quartz.service.ManagerJobSerive;
import org.quartz.JobKey;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.springframework.stereotype.Service;

import com.idc.quartz.service.ManagerJobSerive;

@Service
public class ManagerJobSeriveImpl implements ManagerJobSerive {

    private Scheduler scheduler;


    public Boolean deleteJob(String key) throws SchedulerException {
        JobKey jobKey = new JobKey(key);
        boolean deleteJob = scheduler.deleteJob(jobKey);

        return deleteJob;
    }

    public void updateJob(){


    }


}
